<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="utf-8" />
    <!-- 移动端的浏览 -->
    <meta name="viewport" content="device-width,initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <!-- 排版 -->
    <link rel="stylesheet" href="css/typo.css" th:href="@{/css/typo.css}"/>
    <!-- 动画 -->
    <link rel="stylesheet" href="css/animate.css" th:href="@{/css/animate.css}"/>
    <!-- 目录生成 -->
    <link rel="stylesheet" href="lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}"/>
    <link rel="stylesheet" href="lib/prism/prism.css" th:href="@{/lib/prism/prism.css}"/>
    <link rel="stylesheet" href="css/me.css" th:href="@{/css/me.css}"/>
</head>
<body>



    <nav th:fragment="menu(n)" class="ui inverted segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <!-- stackable 表示可以堆叠的 -->
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">管理后台</h2>
            <a th:href="@{/admin/blogs}" href="#" th:classappend="${n==1} ? 'active'" class="m-item item m-mobile-hide"><i class="home icon"></i>  首页</a>
            <a th:href="@{/admin/types}" href="#" th:classappend="${n==2} ? 'active'" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a th:href="@{/admin/tags}" href="#" th:classappend="${n==3} ? 'active'" class="m-item item m-mobile-hide"><i class="tags icon"></i> 标签</a>
            <div class="right m-item menu m-mobile-hide">
                <di class="ui  item dropdown">
                    <div class="text">
                        <img class="ui avatar image" src="https://picsum.photos/id/1003/100/100">
                        <span th:text="${session.user.nickname}"> 张三</span>
                    </div>
                    <i class="dropdown icon"></i>
                    <div class=" menu">
                        <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
                    </div>

            </div>
        </div>
    </div>
    </div>
    <a href="#" class="ui menu-toggle black button m-top-right m-mobile-show">
        <i class="sidebar icon"></i>
    </a>


</nav>








    <!-- 底部footer -->
    <footer th:fragment="footer" class="ui inverted  segment m-padd-tb-massive" >
        <div class="ui container center aligned">
            <!-- divided 分割线 -->
            <div class="ui inverted divided stackable grid">

                <div class="three wide column">
                    <div class="ui inverted link list">
                        <img src="img/1.png" class="ui rounded centered image m-imagesize"/>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header">最新博客</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">用户故事{}</a>
                        <a href="#" class="item">用户故事{}</a>
                        <a href="#" class="item">用户故事{}</a>
                        <a href="#" class="item">用户故事{}</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header">最新博客</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">用户故事{}</a>
                        <a href="#" class="item">用户故事{}</a>

                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header">最新博客</h4>
                    <p class="m-opacity-mini">这是我的第一个博客</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright  版权所有  工信部备案豫ICP备052483号 公安机关备案4101020100号</p>
        </div>

    </footer>



<th:block th:fragment="script">
    <script src="js/jquery-3.6.0.min.js" th:src="@{/js/jquery-3.6.0.min.js}"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
    <script src="lib/tocbot/tocbot.js" th:src="@{/lib/tocbot/tocbot.js}"></script>
    <script src="lib/qrcode/qrcode.js" th:src="@{/lib/qrcode/qrcode.js}"></script>
</th:block>


</body>
</html>